<template>
  <a-drawer
      :title="title"
      :width="800"
      placement="right"
      :closable="false"
      @close="close"
      :visible="visible"
  >

    <a-spin :spinning="confirmLoading">
      <a-form :form="form">
      
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="riserate">
          <a-input placeholder="请输入riserate" v-decorator="['riserate', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="resaMoneyPrecision">
          <a-input placeholder="请输入resaMoneyPrecision" v-decorator="['resaMoneyPrecision', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="lotManagerMode">
          <a-input placeholder="请输入lotManagerMode" v-decorator="['lotManagerMode', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="lotModify">
          <a-input placeholder="请输入lotModify" v-decorator="['lotModify', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="maxsalesqty">
          <a-input placeholder="请输入maxsalesqty" v-decorator="['maxsalesqty', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="updatepos">
          <a-input placeholder="请输入updatepos" v-decorator="['updatepos', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="inputmethod">
          <a-input placeholder="请输入inputmethod" v-decorator="['inputmethod', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="salerflag">
          <a-input placeholder="请输入salerflag" v-decorator="['salerflag', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="workingtype">
          <a-input placeholder="请输入workingtype" v-decorator="['workingtype', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="ctrllowprice">
          <a-input placeholder="请输入ctrllowprice" v-decorator="['ctrllowprice', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="dispaygathmoney">
          <a-input placeholder="请输入dispaygathmoney" v-decorator="['dispaygathmoney', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="retailcenterid">
          <a-input placeholder="请输入retailcenterid" v-decorator="['retailcenterid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="entryid">
          <a-input placeholder="请输入entryid" v-decorator="['entryid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="presstockflag">
          <a-input placeholder="请输入presstockflag" v-decorator="['presstockflag', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="printflag">
          <a-input placeholder="请输入printflag" v-decorator="['printflag', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="reqsplitflag">
          <a-input placeholder="请输入reqsplitflag" v-decorator="['reqsplitflag', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="iscomm">
          <a-input placeholder="请输入iscomm" v-decorator="['iscomm', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="reqcenterst">
          <a-input placeholder="请输入reqcenterst" v-decorator="['reqcenterst', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="reqqtyuplimit">
          <a-input placeholder="请输入reqqtyuplimit" v-decorator="['reqqtyuplimit', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="manualratelimit">
          <a-input placeholder="请输入manualratelimit" v-decorator="['manualratelimit', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="miniaturetaxpayerflag">
          <a-input placeholder="请输入miniaturetaxpayerflag" v-decorator="['miniaturetaxpayerflag', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="incometaxrate">
          <a-input placeholder="请输入incometaxrate" v-decorator="['incometaxrate', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="outputtaxrate">
          <a-input placeholder="请输入outputtaxrate" v-decorator="['outputtaxrate', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="placepointtype">
          <a-input placeholder="请输入placepointtype" v-decorator="['placepointtype', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="batchManagerMode">
          <a-input placeholder="请输入batchManagerMode" v-decorator="['batchManagerMode', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="insautoup">
          <a-input placeholder="请输入insautoup" v-decorator="['insautoup', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="otcrestrict">
          <a-input placeholder="请输入otcrestrict" v-decorator="['otcrestrict', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="defaultdocter">
          <a-input placeholder="请输入defaultdocter" v-decorator="['defaultdocter', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="defaulthospital">
          <a-input placeholder="请输入defaulthospital" v-decorator="['defaulthospital', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="maxephqty">
          <a-input placeholder="请输入maxephqty" v-decorator="['maxephqty', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="exampriceid">
          <a-input placeholder="请输入exampriceid" v-decorator="['exampriceid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="prelotmanagermode">
          <a-input placeholder="请输入prelotmanagermode" v-decorator="['prelotmanagermode', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="peifangmanid">
          <a-input placeholder="请输入peifangmanid" v-decorator="['peifangmanid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="shenfangmanid">
          <a-input placeholder="请输入shenfangmanid" v-decorator="['shenfangmanid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="translineid">
          <a-input placeholder="请输入translineid" v-decorator="['translineid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="sadaysParam">
          <a-input placeholder="请输入sadaysParam" v-decorator="['sadaysParam', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="topnumParam">
          <a-input placeholder="请输入topnumParam" v-decorator="['topnumParam', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="categoryid">
          <a-input placeholder="请输入categoryid" v-decorator="['categoryid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="bulkcheckmanid">
          <a-input placeholder="请输入bulkcheckmanid" v-decorator="['bulkcheckmanid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="deliveryday">
          <a-input placeholder="请输入deliveryday" v-decorator="['deliveryday', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="totalarea">
          <a-input placeholder="请输入totalarea" v-decorator="['totalarea', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="livingarea">
          <a-input placeholder="请输入livingarea" v-decorator="['livingarea', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="recipereusableflag">
          <a-input placeholder="请输入recipereusableflag" v-decorator="['recipereusableflag', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="manuallyadd">
          <a-input placeholder="请输入manuallyadd" v-decorator="['manuallyadd', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="isapproval">
          <a-input placeholder="请输入isapproval" v-decorator="['isapproval', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="jfdkxs">
          <a-input placeholder="请输入jfdkxs" v-decorator="['jfdkxs', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="isconfirm">
          <a-input placeholder="请输入isconfirm" v-decorator="['isconfirm', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="insiderchangelow">
          <a-input placeholder="请输入insiderchangelow" v-decorator="['insiderchangelow', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="officesids">
          <a-input placeholder="请输入officesids" v-decorator="['officesids', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="officesnames">
          <a-input placeholder="请输入officesnames" v-decorator="['officesnames', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="classtempletid">
          <a-input placeholder="请输入classtempletid" v-decorator="['classtempletid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="iszfb">
          <a-input placeholder="请输入iszfb" v-decorator="['iszfb', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="zfbPayPubkey">
          <a-input placeholder="请输入zfbPayPubkey" v-decorator="['zfbPayPubkey', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="zfbPrivatekey">
          <a-input placeholder="请输入zfbPrivatekey" v-decorator="['zfbPrivatekey', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="zfbAppid">
          <a-input placeholder="请输入zfbAppid" v-decorator="['zfbAppid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="isweixin">
          <a-input placeholder="请输入isweixin" v-decorator="['isweixin', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="wxCustomerno">
          <a-input placeholder="请输入wxCustomerno" v-decorator="['wxCustomerno', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="isendofday">
          <a-input placeholder="请输入isendofday" v-decorator="['isendofday', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="issame">
          <a-input placeholder="请输入issame" v-decorator="['issame', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="avgmathed">
          <a-input placeholder="请输入avgmathed" v-decorator="['avgmathed', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="avgmathedpoint">
          <a-input placeholder="请输入avgmathedpoint" v-decorator="['avgmathedpoint', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="updownupdate">
          <a-input placeholder="请输入updownupdate" v-decorator="['updownupdate', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="updowngoods">
          <a-input placeholder="请输入updowngoods" v-decorator="['updowngoods', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="updownavgmathed">
          <a-input placeholder="请输入updownavgmathed" v-decorator="['updownavgmathed', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="updownmathedpoint">
          <a-input placeholder="请输入updownmathedpoint" v-decorator="['updownmathedpoint', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="defaultupdays">
          <a-input placeholder="请输入defaultupdays" v-decorator="['defaultupdays', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="defaultdowndays">
          <a-input placeholder="请输入defaultdowndays" v-decorator="['defaultdowndays', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="avgcalculatemathed">
          <a-input placeholder="请输入avgcalculatemathed" v-decorator="['avgcalculatemathed', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d1days">
          <a-input placeholder="请输入d1days" v-decorator="['d1days', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d2days">
          <a-input placeholder="请输入d2days" v-decorator="['d2days', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d3days">
          <a-input placeholder="请输入d3days" v-decorator="['d3days', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d4days">
          <a-input placeholder="请输入d4days" v-decorator="['d4days', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d1proportion">
          <a-input placeholder="请输入d1proportion" v-decorator="['d1proportion', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d2proportion">
          <a-input placeholder="请输入d2proportion" v-decorator="['d2proportion', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d3proportion">
          <a-input placeholder="请输入d3proportion" v-decorator="['d3proportion', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="d4proportion">
          <a-input placeholder="请输入d4proportion" v-decorator="['d4proportion', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="removenosale">
          <a-input placeholder="请输入removenosale" v-decorator="['removenosale', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="removeplace">
          <a-input placeholder="请输入removeplace" v-decorator="['removeplace', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="removenoaccept">
          <a-input placeholder="请输入removenoaccept" v-decorator="['removenoaccept', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="removeinst">
          <a-input placeholder="请输入removeinst" v-decorator="['removeinst', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="removeoutst">
          <a-input placeholder="请输入removeoutst" v-decorator="['removeoutst', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="reqmathed">
          <a-input placeholder="请输入reqmathed" v-decorator="['reqmathed', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="autoreqmathed">
          <a-input placeholder="请输入autoreqmathed" v-decorator="['autoreqmathed', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="autoreqdate">
          <a-input placeholder="请输入autoreqdate" v-decorator="['autoreqdate', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="autorequsestatus">
          <a-input placeholder="请输入autorequsestatus" v-decorator="['autorequsestatus', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="clacdaten">
          <a-input placeholder="请输入clacdaten" v-decorator="['clacdaten', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="calcmethod">
          <a-input placeholder="请输入calcmethod" v-decorator="['calcmethod', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="zxOtcflag0">
          <a-input placeholder="请输入zxOtcflag0" v-decorator="['zxOtcflag0', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="zxOtcflag1">
          <a-input placeholder="请输入zxOtcflag1" v-decorator="['zxOtcflag1', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="zxOtcflag2">
          <a-input placeholder="请输入zxOtcflag2" v-decorator="['zxOtcflag2', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="zxOtcflag3">
          <a-input placeholder="请输入zxOtcflag3" v-decorator="['zxOtcflag3', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="placepointid">
          <a-input placeholder="请输入placepointid" v-decorator="['placepointid', validatorRules.placepointid ]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="placepointopcode">
          <a-input placeholder="请输入placepointopcode" v-decorator="['placepointopcode', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="placepointno">
          <a-input placeholder="请输入placepointno" v-decorator="['placepointno', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="placepointname">
          <a-input placeholder="请输入placepointname" v-decorator="['placepointname', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="placepointpinyin">
          <a-input placeholder="请输入placepointpinyin" v-decorator="['placepointpinyin', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="usestatus">
          <a-input placeholder="请输入usestatus" v-decorator="['usestatus', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="memo">
          <a-input placeholder="请输入memo" v-decorator="['memo', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="storageid">
          <a-input placeholder="请输入storageid" v-decorator="['storageid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="sthouseid">
          <a-input placeholder="请输入sthouseid" v-decorator="['sthouseid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="tel">
          <a-input placeholder="请输入tel" v-decorator="['tel', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="ones">
          <a-input placeholder="请输入ones" v-decorator="['ones', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="businesstime">
          <a-input placeholder="请输入businesstime" v-decorator="['businesstime', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="address">
          <a-input placeholder="请输入address" v-decorator="['address', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="credate">
          <a-date-picker v-decorator="[ 'credate', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="inputmanid">
          <a-input placeholder="请输入inputmanid" v-decorator="['inputmanid', {}]" />
        </a-form-item>
        <a-form-item
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          label="areadocid">
          <a-input placeholder="请输入areadocid" v-decorator="['areadocid', {}]" />
        </a-form-item>
		
      </a-form>
    </a-spin>
    <a-button type="primary" @click="handleOk">确定</a-button>
    <a-button type="primary" @click="handleCancel">取消</a-button>
  </a-drawer>
</template>

<script>
  import { httpAction } from '@/api/manage'
  import pick from 'lodash.pick'
  import moment from "moment"

  export default {
    name: "RetailCenterModal",
    data () {
      return {
        title:"操作",
        visible: false,
        model: {},
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },

        confirmLoading: false,
        form: this.$form.createForm(this),
        validatorRules:{
        placepointid:{rules: [{ required: true, message: '请输入placepointid!' }]},
        },
        url: {
          add: "/sa/retailCenter/add",
          edit: "/sa/retailCenter/edit",
        },
      }
    },
    created () {
    },
    methods: {
      add () {
        this.edit({});
      },
      edit (record) {
        this.form.resetFields();
        this.model = Object.assign({}, record);
        this.visible = true;
        this.$nextTick(() => {
          this.form.setFieldsValue(pick(this.model,'riserate','resaMoneyPrecision','lotManagerMode','lotModify','maxsalesqty','updatepos','inputmethod','salerflag','workingtype','ctrllowprice','dispaygathmoney','retailcenterid','entryid','presstockflag','printflag','reqsplitflag','iscomm','reqcenterst','reqqtyuplimit','manualratelimit','miniaturetaxpayerflag','incometaxrate','outputtaxrate','placepointtype','batchManagerMode','insautoup','otcrestrict','defaultdocter','defaulthospital','maxephqty','exampriceid','prelotmanagermode','peifangmanid','shenfangmanid','translineid','sadaysParam','topnumParam','categoryid','bulkcheckmanid','deliveryday','totalarea','livingarea','recipereusableflag','manuallyadd','isapproval','jfdkxs','isconfirm','insiderchangelow','officesids','officesnames','classtempletid','iszfb','zfbPayPubkey','zfbPrivatekey','zfbAppid','isweixin','wxCustomerno','isendofday','issame','avgmathed','avgmathedpoint','updownupdate','updowngoods','updownavgmathed','updownmathedpoint','defaultupdays','defaultdowndays','avgcalculatemathed','d1days','d2days','d3days','d4days','d1proportion','d2proportion','d3proportion','d4proportion','removenosale','removeplace','removenoaccept','removeinst','removeoutst','reqmathed','autoreqmathed','autoreqdate','autorequsestatus','clacdaten','calcmethod','zxOtcflag0','zxOtcflag1','zxOtcflag2','zxOtcflag3','placepointid','placepointopcode','placepointno','placepointname','placepointpinyin','usestatus','memo','storageid','sthouseid','tel','ones','businesstime','address','inputmanid','areadocid'))
		  //时间格式化
          this.form.setFieldsValue({credate:this.model.credate?moment(this.model.credate):null})
        });

      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleOk () {
        const that = this;
        // 触发表单验证
        this.form.validateFields((err, values) => {
          if (!err) {
            that.confirmLoading = true;
            let httpurl = '';
            let method = '';
            if(!this.model.id){
              httpurl+=this.url.add;
              method = 'post';
            }else{
              httpurl+=this.url.edit;
               method = 'put';
            }
            let formData = Object.assign(this.model, values);
            //时间格式化
            formData.credate = formData.credate?formData.credate.format():null;
            
            console.log(formData)
            httpAction(httpurl,formData,method).then((res)=>{
              if(res.success){
                that.$message.success(res.message);
                that.$emit('ok');
              }else{
                that.$message.warning(res.message);
              }
            }).finally(() => {
              that.confirmLoading = false;
              that.close();
            })



          }
        })
      },
      handleCancel () {
        this.close()
      },


    }
  }
</script>

<style lang="less" scoped>
/** Button按钮间距 */
  .ant-btn {
    margin-left: 30px;
    margin-bottom: 30px;
    float: right;
  }
</style>